package com.itheima.thread.api.demo05;

public class MyThreadDemo05 {

    public static void main(String[] args) {

        MyThread t1 = new MyThread();
        MyThread t2 = new MyThread();

        t1.setName("A");
        t1.setName("B");

        System.out.println(t1.getPriority());
        System.out.println(t2.getPriority());

        t1.setPriority(3);
        t2.setPriority(1);

        t1.start();
        t2.start();

    }
}
